export default class CacheUtil {
  static get<T>(key: string): T | null {
    return window.api.cache.getStoreValue(key) as T
  }

  static set(key: string, value: any) {
    window.api.cache.setStoreValue(key, value)
  }

  static remove(key: string) {
    window.api.cache.removeStore(key)
  }

  static clear() {
    window.api.cache.clear()
  }
}
